import 'package:flutter/material.dart';
import 'package:shopping_group/main/lz_hot_cakes/model/lz_hot_cakes_play_video_model.dart';
import 'package:shopping_group/main/lz_hot_cakes/model/lz_hot_cakes_product_model.dart';

class LzHotCakesProvider extends ChangeNotifier {
  //数据源
  List<LzHotCakesProductModel> dataList = [];

  //播放视频源
  LzHotCakesPlayVideoModel playVideoModel;

  //广告次数
  Map<String, dynamic> ggHadDoCtMap = {};

  LzHotCakesProvider();

  //设置数据源
  setDataList(List<LzHotCakesProductModel> models) {
    dataList = models;
    notifyListeners();
  }

  //设置广告信息
  setGgHadDoCtMap(Map<String, dynamic> map) {
    ggHadDoCtMap = map;
    notifyListeners();
  }

  setVideoModel(LzHotCakesPlayVideoModel videoModel) {
    playVideoModel = videoModel;
    notifyListeners();
  }
}
